<?php

class SiteController extends dmq\Controller
{
	public function DoControll()
	{
		$this->title( 'Irinori' );
		$this->css( 'website' );


		// Get section. Lobby is standard if no section is found.
		$section = $this->view->controller();
		$section = ( $section ) ? $section : 'Lobby';

		// Load and run section controller.
		$sectionControllerName = $section . 'Controller';
		require_once $sectionControllerName . '.php';
		$sectionController = new $sectionControllerName();


		$this->view->buildWebsite( $this, $sectionController );
	}
}
